<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/commons/taglibs.jsp"%>
<%@ taglib prefix="sys" tagdir="/WEB-INF/tags" %>
<html>
<head>
    <title>license新增页面</title>
    <jsp:include page="../../commons/common-add.jsp"></jsp:include>
    <script type="text/javascript" src="${basePath}/statics/modules/license/js/license_add.js"></script>
</head>
<body>
<sys:message msgContent="${message}"/>
<div class="box-body" style="display: block;">
    <input type="hidden" id="basePath" value="${basePath}" />
    <form id="inputForm"
          action="" method="post"  class="form-horizontal">
        <div class="form-group">
            <label for="licenseMain.subject" class="col-sm-2 control-label text-pull-right">
                <b class="must-star">*</b>
                License名称
            </label>
            <div class="col-sm-3">
                <input type="text" autofocus class="form-control required" id="licenseMain.subject" name="licenseMain.subject" placeholder="License名称" >
            </div>
        </div>

        <div class="form-group ">
            <label for="licenseTemplate-id" class="col-sm-2 control-label text-pull-right">
                <b class="must-star">*</b>
                License 版本选择
            </label>
            <div class="col-sm-3">
                <select autofocus class="form-control required" id="licenseTemplate-id" name="licenseTemplate.id">
                </select>
                <input type="hidden" name="licenseTemplate.type" id="licenseTemplate-type" />
            </div>
        </div>
        <div class="form-group ">
            <label for="machine" class="col-sm-2 control-label text-pull-right"><b class="must-star">*</b>License 主机管理数量</label>
            <div class="col-sm-3">
                <input type="text" class="form-control digits required"  id="machine" name="machine" placeholder="License 主机管理数量"  >
            </div>
        </div>

        <div class="form-group ">
            <label for="notBefore" class="col-sm-2 control-label text-pull-right"><b class="must-star">*</b>
                License 开始时间
            </label>
            <div class="col-sm-3">
                <input type="date"  class="form-control required" id="notBefore" name="notBefore" placeholder="License 开始时间"  >
            </div>
        </div>

        <div class="form-group ">
            <label for="validity" class="col-sm-2 control-label text-pull-right"><b class="must-star">*</b>License 时长(天)</label>
            <div class="col-sm-3">
                <input type="text"  class="form-control digits" id="validity" name="validity" placeholder="License 时长" >
            </div>
        </div>

        <div class="form-group ">
            <label for="info" class="col-sm-2 control-label text-pull-right">
                License 描述信息
            </label>
            <div class="col-sm-3">
                <input type="text"  class="form-control " id="info" name="info" placeholder="License 描述信息"  cols="15" rows="7" >
            </div>
        </div>

        <div class="form-group ">
            <label for="motherboard" class="col-sm-2 control-label text-pull-right"><b class="must-star">*</b>主板序列号</label>
            <div class="col-sm-3">
                <input type="text" class="form-control required" id="motherboard" name="motherboard" placeholder="主板序列号" >
            </div>
        </div>

        <div class="form-group ">
            <label for="system" class="col-sm-2 control-label text-pull-right"><b class="must-star">*</b>系统序列号</label>
            <div class="col-sm-3">
                <input type="text" class="form-control required" id="system" name="system" placeholder="系统序列号">
            </div>
        </div>

        <div class="form-group ">
            <label for="ip" class="col-sm-2 control-label text-pull-right"><b class="must-star">*</b>装载IP</label>
            <div class="col-sm-6">
                <textarea rows="8" cols="200" type="textarea" class="form-control required" id="ip" name="ip" placeholder="装载IP"></textarea>
            </div>
        </div>

        <div class="form-group ">
            <label for="disk" class="col-sm-2 control-label text-pull-right"><b class="must-star">*</b>硬盘信息</label>
            <div class="col-sm-6">
                <textarea rows="8" cols="200" type="text" class="form-control required" id="disk" name="disk" placeholder="硬盘信息" ></textarea>
            </div>
        </div>

        <div class="form-group ">
            <label for="mac" class="col-sm-2 control-label text-pull-right"><b class="must-star">*</b>Mac地址</label>
            <div class="col-sm-6">
                <textarea rows="8" cols="200" type="text" class="form-control required" id="mac" name="mac" placeholder="Mac地址"></textarea>
            </div>
        </div>

        <div class="form-group ">
            <label for="cpu" class="col-sm-2 control-label text-pull-right"><b class="must-star">*</b>CPU序列号</label>
            <div class="col-sm-6">
                <textarea rows="8" cols="200" type="text" class="form-control required" id="cpu" name="cpu" placeholder="CPU序列号"></textarea>
            </div>
        </div>

        <div class="form-group" style="padding-left: 200px;">
            <input id="btnSubmit" class="btn btn-primary"  type="submit" onclick="submitLicense()" value="提交"/>
            <input id="btnCancel" class="btn btn-cancle" style="margin-left: 20px" type="reset" value="重置" />
        </div>
    </form>
</div>
</body>
</html>